<assign name="page_title" value="私信" />
<assign name="current_item" value="message" />
<include file="Public:header" />
<div id="main">
    <div id="main-header" class="grid page">
        <h2>爱咕噜</h2>
        <h1>你的私信</h1>
    </div>
    <div id="sub-main-header"></div>
    <div id="main-inner" class="message_index page">
        <h3>
            <gt name="messageCount" value="0">
            你有 {{$messageCount}} 条新私信
            <else/>
            你没有新的私信
            </gt>
        </h3>
        <volist name="data" id="message">
            <div class="message_list grid dash <php>if((Session::get("user_id") == (int)$message['user_id'] ? $message['status'] : $message['from_status'])==1) echo "read"</php>">
                <div class="col1_18">•</div>
                <div class="col13_18">
                    <a href="__URL__/{{$message.message_id}}">
                        <p> 
                            <strong>{{$message.summary}}</strong>
                        </p>
                        <p>
                            {{$message.content}}
                        </p>
                    </a>
                </div>
                <div class="col4_18 last text_right small gray">
                    发送于<br>
                    {{$message.last_time|friendly_date=###,normal}}
                </div>
            </div>
        </volist>
        <div class="pager">{{$page}}</div>
    </div>
</div>
<include file="Public:footer" />